
def upper_first(word):
    return word[0].upper() + word[1:]

def filename_split(filename):
    filename = filename[:filename.rindex('.')]
    splitted = filename.split('_')
    return {
            'name': upper_first(splitted[2]) + ' ' + ' '.join(splitted[3:]),
            'category': splitted[0],
            'order': int(splitted[1])
            }
